import {createApp} from 'vue'
import App from './App.vue'
import 'vant/lib/index.css';
import * as VueRouter from 'vue-router'
import routes from "./config/routes.ts";
import Vant from 'vant';
import { setupRequestInterceptors } from './plugins/requestApi.ts';

const app = createApp(App);
app.use(Vant);
const router = VueRouter.createRouter({
    history: VueRouter.createWebHistory("/yupao"),
    routes,
})
app.use(router);
// 设置拦截器
setupRequestInterceptors(router);
app.mount('#app');
